//
//  GoodInfoTableHeaderView.m
//  ai2ban
//
//  Created by Heartbeats on 2018/1/30.
//  Copyright © 2018年 mac book pro. All rights reserved.
//

#import "GoodInfoTableHeaderView.h"

@interface GoodInfoTableHeaderView()
@property (weak, nonatomic) IBOutlet UILabel *nameLab;
@property (weak, nonatomic) IBOutlet UILabel *jiFenLab;
@property (weak, nonatomic) IBOutlet UIImageView *bannerImgV;


@end

@implementation GoodInfoTableHeaderView

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setGoodModel:(JiFenGoodModel *)goodModel {
    _goodModel = goodModel;
    self.nameLab.text = goodModel.name;
    self.jiFenLab.text = goodModel.showScore;
    [self.bannerImgV sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@", ImageBaseUrl, goodModel.picImg]]];
}

@end
